package com.cyf.plc.model

import android.os.Parcelable
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.squareup.moshi.JsonClass
import kotlinx.android.parcel.Parcelize

@Entity
@Parcelize
@JsonClass(generateAdapter = true)
data class PlcRoom(
    @PrimaryKey(autoGenerate = true)
    var roomId: Int? = 0,
    var roomName: String? = "",
    var roomOwnerId: Long?
) : Parcelable{
    var roomSelect: Boolean = false
    constructor(roomId: Int?,roomName: String?,roomOwnerId: Long?,rooSelect: Boolean) : this(roomId,roomName,roomOwnerId){
        this.roomSelect = roomSelect;
    }
}